package com.hycreate.platform.modules.element;

import java.util.Date;

import org.hibernate.validator.constraints.Length;

import com.hycreate.platform.common.persistence.DataEntity;

/**
 * 配件Entity
 * @author hoader
 * @version 2017-01-09
 */
public class SfElement extends DataEntity<SfElement> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// 编码
	private String content;		// 简介
	private String enContent;		// 英文简介
	private String num;		// 现有数量
	private String productionCycle; //生产/采购周期
	
	//private Date detectionTime; //检测检测时间
	//private Date waitingTime; //待检时间
	
	private String attributes;//配件属性
	
	private String elemenetPicURL;   //配件图片
	
	/**
	 * 安全库存
	 */
	private String safeNum;
	private String beginNum;		// 开始 数量
	private String endNum;		// 结束 数量
	
	private String warehouse;  //存放仓库
	
	private String existImage;   //是否有图片
	

	public String getProductionCycle() {
		return productionCycle;
	}

	public void setProductionCycle(String productionCycle) {
		this.productionCycle = productionCycle;
	}

	public SfElement() {
		super();
	}

	public SfElement(String id){
		super(id);
	}

	public String getSafeNum() {
		return safeNum;
	}

	public void setSafeNum(String safeNum) {
		this.safeNum = safeNum;
	}

	@Length(min=0, max=64, message="编码长度必须介于 0 和 64 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@Length(min=0, max=11, message="数量长度必须介于 0 和 11 之间")
	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}
	
	public String getBeginNum() {
		return beginNum;
	}

	public void setBeginNum(String beginNum) {
		this.beginNum = beginNum;
	}
	
	public String getEndNum() {
		return endNum;
	}

	public void setEndNum(String endNum) {
		this.endNum = endNum;
	}

	public String getEnContent() {
		return enContent;
	}

	public void setEnContent(String enContent) {
		this.enContent = enContent;
	}



	public String getElemenetPicURL() {
		return elemenetPicURL;
	}

	public void setElemenetPicURL(String elemenetPicURL) {
		this.elemenetPicURL = elemenetPicURL;
	}

	public String getAttributes() {
		return attributes;
	}

	public void setAttributes(String attributes) {
		this.attributes = attributes;
	}

	public String getWarehouse() {
		return warehouse;
	}

	public void setWarehouse(String warehouse) {
		this.warehouse = warehouse;
	}

	public String getExistImage() {
		return existImage;
	}

	public void setExistImage(String existImage) {
		this.existImage = existImage;
	}

	
}